<?php

namespace PhpYes\Modules\Log;

class LogException extends \Exception
{
    /** @var int */
    private $httpRspCode;

    public function __construct($message = '', $httpRspCode = 400, $code = 0, \Exception $previous = null)
    {
        parent::__construct($message, $code, $previous);
        $this->httpRspCode = $httpRspCode;
    }

    /**
     * @return int
     */
    public function getHttpRspCode()
    {
        return $this->httpRspCode;
    }

    /**
     * @param int $httpRspCode
     */
    public function setHttpRspCode($httpRspCode)
    {
        $this->httpRspCode = $httpRspCode;
    }

}